
package com.liangtian.mdm.dm.model.model;

import com.liangtian.mdm.base.model.BaseModel;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * *
 * <p>
 * Title: 模型定义表结构<表的创建>
 * </p>
 * <p>
 * Description: 创建动态模型定义表
 * </p>
 * <p>
 * Company:dmodelcom.liangtian.mdm.dm.model.model
 * </p>
 *
 * @author : xiaoliu
 * @date :2016年7月8日上午11:33:07
 */
@SuppressWarnings({"serial"})
@Table(name = "AM_MODEL")
public class Model extends BaseModel implements Serializable {

    @SequenceGenerator(name = "Any", sequenceName = "AM_MODEL_SEQ")
    @Id
    @Column(name = "ID")
    private String id;            // 模型主键ID
    @Column(name = "MODEL_NAME")
    private String modelName;    // 模型名称
    @Column(name = "MODEL_DESC")
    private String modelDesc;    // 模型描述
    @Column(name = "MODEL_TYPE")
    private String modelType;    // 模型类型 【0-主数据、1-字典表】
    @Column(name = "CREATER_ID")
    private String createrId;    // 创建人ID
    @Column(name = "CREATER_NAME")
    private String createrName;    // 创建人姓名
    @Column(name = "CREATER_TIME")
    private String createrTime;    // 创建时间
    @Column(name = "UPDATER_ID")
    private String updaterId;    // 修改人ID
    @Column(name = "UPDATER_NAME")
    private String updaterName;    // 修改人姓名
    @Column(name = "UPDATER_TIME")
    private String updaterTime;    // 修改时间
    @Column(name = "TABLE_NAME")
    private String tableName;    // 模型表名
    @Column(name = "IS_TABLE_CREATE")
    private Integer isTableCreate;// 是否创建表名（0-否 1-是）
    @Column(name = "IS_JSP_CREATE")
    private Integer isJspCreate;// 是否创建页面（0-否 1-是）
    @Column(name = "IS_MENU_CREATE")
    private Integer isMenuCreate;// 是否菜单创建（0-否 1-是）
    @Column(name = "VERSION")
    private Integer version;    // 版本
    @Column(name = "IS_WORKFLOW")
    private Integer isWorkflow;    // 是否流程（0-否 1-是）
    @Column(name = "IS_MODIFY")
    private Integer isModify;    // 是否变更（0-否 1-是）
    @Column(name = "IS_DISPATCH")
    private Integer isDispatch;    // 是否分发（0-否 1-是）
    @Column(name = "IS_SUBTABLE")
    private Integer isSubtable;    // 是否从表（0-否 1-是）
    @Column(name = "MAINTABLE_ID")
    private String maintableId;    // 存放【主表/分类表】的模型ID
    @Column(name = "STATUS")
    private String status;        // 状态 【0-启用状态   1- 删除（停用状态）】
    @Column(name = "CLASS_TYPE")
    private String classType;    //数据类型 【0-列表、1-父子树、2-分类树】
    @Column(name = "CLASSCOLUMN")
    private String classColumn;//本模型与分类树模型关联的字段
    @Column(name = "IS_MORE_VIEW")
    private Integer isMoreView;    // 是否多视图（0-否 1-是）

    public Integer getIsMoreView() {
        return isMoreView;
    }

    public void setIsMoreView(Integer isMoreView) {
        this.isMoreView = isMoreView;
    }

    public String getClassColumn() {
        return classColumn;
    }

    public void setClassColumn(String classColumn) {
        this.classColumn = classColumn;
    }

    public String getClassType() {
        return classType;
    }

    public void setClassType(String classType) {
        this.classType = classType;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public String getModelDesc() {
        return modelDesc;
    }

    public void setModelDesc(String modelDesc) {
        this.modelDesc = modelDesc;
    }

    public String getModelType() {
        return modelType;
    }

    public void setModelType(String modelType) {
        this.modelType = modelType;
    }

    public String getUpdaterId() {
        return updaterId;
    }

    public void setUpdaterId(String updaterId) {
        this.updaterId = updaterId;
    }

    public String getUpdaterName() {
        return updaterName;
    }

    public void setUpdaterName(String updaterName) {
        this.updaterName = updaterName;
    }

    public String getCreaterName() {
        return createrName;
    }

    public void setCreaterName(String createrName) {
        this.createrName = createrName;
    }

    public String getCreaterTime() {
        return createrTime;
    }

    public void setCreaterTime(String createrTime) {
        this.createrTime = createrTime;
    }

    public String getUpdaterTime() {
        return updaterTime;
    }

    public void setUpdaterTime(String updaterTime) {
        this.updaterTime = updaterTime;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Integer getIsModify() {
        return isModify;
    }

    public void setIsModify(Integer isModify) {
        if (null == isModify) {
            this.isModify = 0;
        } else {
            this.isModify = isModify;
        }
    }

    public Integer getIsDispatch() {
        return isDispatch;
    }

    public void setIsDispatch(Integer isDispatch) {
        if (null == isDispatch) {
            this.isDispatch = 0;
        } else {
            this.isDispatch = isDispatch;
        }
    }

    public Integer getIsSubtable() {
        return isSubtable;
    }

    public void setIsSubtable(Integer isSubtable) {
        if (null == isSubtable) {
            this.isSubtable = 0;
        } else {
            this.isSubtable = isSubtable;
        }
    }

    public String getCreaterId() {
        return createrId;
    }

    public void setCreaterId(String createrId) {
        this.createrId = createrId;
    }

    public Integer getIsTableCreate() {
        return isTableCreate;
    }

    public void setIsTableCreate(Integer isTableCreate) {
        this.isTableCreate = isTableCreate;
    }

    public Integer getIsJspCreate() {
        return isJspCreate;
    }

    public void setIsJspCreate(Integer isJspCreate) {
        this.isJspCreate = isJspCreate;
    }

    public Integer getIsWorkflow() {
        return isWorkflow;
    }

    public void setIsWorkflow(Integer isWorkflow) {
        if (null == isWorkflow) {
            this.isWorkflow = 0;
        } else {
            this.isWorkflow = isWorkflow;
        }
    }

    public String getMaintableId() {
        return maintableId;
    }

    public void setMaintableId(String maintableId) {
        this.maintableId = maintableId;
    }

    public Integer getIsMenuCreate() {
        return isMenuCreate;
    }

    public void setIsMenuCreate(Integer isMenuCreate) {
        this.isMenuCreate = isMenuCreate;
    }

}
